package com.example.enums;

public enum ResultCodeEnum {
    SUCCESS("200", "成功"),
    PARAM_ERROR("400", "请正确输入合法数据"),
    TOKEN_INVALID_ERROR("401", "无效的token"),
    TOKEN_CHECK_ERROR("401", "登录已过期，请重新登录"),
    PARAM_LOST_ERROR("4001", "参数缺失"),
    SYSTEM_ERROR("500", "系统异常"),
    USER_EXIST_ERROR("5001", "用户名已存在"),
    USER_NOT_LOGIN("5002", "用户未登录"),
    USER_ACCOUNT_ERROR("5003", "账号或密码错误"),
    USER_NOT_EXIST_ERROR("5004", "用户不存在"),
    PARAM_PASSWORD_ERROR("5005", "原密码输入错误"),
    RESET_INFORMATION_ERROR("5006","您提供的信息不正确"),
    FREQUENT_VISITS("5007","您的访问过于频繁"),
    IP_HAS_BEEN_LOCKED("5008","IP已被锁定，请联系管理员"),
    IP_EXIST_ERROR("5009", "IP已存在"),
    BEING_USED_STR("5010","资源被引用中，不可删除"),
    VERIFICATION_CODE_EXPIRED("5011","验证码已过期，请重新获取"),
    CODE_KEY_ERROR("5012","验证码错误"),
    PHONE_FORMAT_ERROR("5013","手机格式错误"),
    EMAIL_ERROR("5014","您提供的邮箱地址存在错误")
    ;

    public String code;
    public String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
